package com.logicalthinking.socialmall.entity;

import com.github.chenlijia1111.utils.core.annos.PropertyCheck;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;
import javax.persistence.*;

/**
 * 客户端用户
 * @author chenLiJia
 * @since 2020-02-17 14:43:32
 * @version 1.0
 **/
@ApiModel("客户端用户")
@Table(name = "m_client_user")
@Setter
@Getter
@Accessors(chain = true)
public class ClientUser {
    /**
     * 主键id
     */
    @ApiModelProperty("主键id")
    @PropertyCheck(name = "主键id")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Integer id;

    /**
     * 用户名称
     */
    @ApiModelProperty("用户名称")
    @PropertyCheck(name = "用户名称")
    @Column(name = "name")
    private String name;

    /**
     * 手机号码
     */
    @ApiModelProperty("手机号码")
    @PropertyCheck(name = "手机号码")
    @Column(name = "telephone")
    private String telephone;

    /**
     * 密码
     */
    @ApiModelProperty("密码")
    @PropertyCheck(name = "密码")
    @Column(name = "password")
    private String password;

    /**
     * 性别 0：未知、1：男、2：女
     */
    @ApiModelProperty("性别 0：未知、1：男、2：女")
    @PropertyCheck(name = "性别 0：未知、1：男、2：女")
    @Column(name = "sex")
    private Integer sex;

    /**
     * 用户地址_经度
     */
    @ApiModelProperty("用户地址_经度")
    @PropertyCheck(name = "用户地址_经度")
    @Column(name = "client_address_longitude")
    private Double clientAddressLongitude;

    /**
     * 用户地址_纬度
     */
    @ApiModelProperty("用户地址_纬度")
    @PropertyCheck(name = "用户地址_纬度")
    @Column(name = "client_address_latitude")
    private Double clientAddressLatitude;

    /**
     * 用户地址
     */
    @ApiModelProperty("用户地址")
    @PropertyCheck(name = "用户地址")
    @Column(name = "client_address_name")
    private String clientAddressName;

    /**
     * 用户类型 1未认证用户2普通会员3商家会员
     */
    @ApiModelProperty("用户类型 1未认证用户2普通会员3商家会员")
    @PropertyCheck(name = "用户类型 1未认证用户2普通会员3商家会员")
    @Column(name = "user_type")
    private Integer userType;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @PropertyCheck(name = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 编辑时间
     */
    @ApiModelProperty("编辑时间")
    @PropertyCheck(name = "编辑时间")
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 是否删除0否1是
     */
    @ApiModelProperty("是否删除0否1是")
    @PropertyCheck(name = "是否删除0否1是")
    @Column(name = "delete_status")
    private Integer deleteStatus;

    /**
     * 是否启用0否1是
     */
    @ApiModelProperty("是否启用0否1是")
    @PropertyCheck(name = "是否启用0否1是")
    @Column(name = "open_status")
    private Integer openStatus;


}